package logic;

import javax.swing.JFileChooser;

import utils.Constant;

public class MainLogger {

	public static void main(String[] args) {

		JFileChooser chooser = new JFileChooser();
		chooser.setCurrentDirectory(new java.io.File("."));
		chooser.setDialogTitle("Choose Logger Path");
		chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
		chooser.setAcceptAllFileFilterUsed(false);

		if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
			BuildLog.adjustmentLogger(chooser.getSelectedFile()
					.getAbsolutePath()
					+ Constant.TABLET + Constant.LOGGERNAME);
			System.out.println("Path selected: " + chooser.getSelectedFile());
			System.out.println("Log Formated: " + chooser.getSelectedFile());
			System.out.println("");
		} else {
			System.out.println("No selected Path!");
		}
	}
}
